package cn.lopr.im.api.service;

import cn.lopr.im.api.bean.User;
import cn.lopr.im.api.vo.UserVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author shuangyang7
 * @date 2020/12/22 18:30
 */
@Transactional()
public interface IUserService {
    User getUserById(Integer id);

    User login(String phone, String password);

    User autoLogin(String phone);

    List<User> getFriend(User user);

    List<User> getFriendByPhones(String[] phones);

    User getUser();

    User reg(String phone, String password, String name);

    boolean regBefore(User setIntroduction);

    boolean updateUser(User user);

    List<UserVo> searchFriend(String myPhone, String content);

    boolean addFriend(String myPhone, String phone);

    Map<String, Integer> getLikeMeLikeYouVisitPublish(Integer userId);


}
